
from langchain.prompts import PromptTemplate

# 从文件加载 Prompt 模板
template = PromptTemplate.from_file("example_prompt_template.txt", encoding="utf-8")

print(template)
print(template.format(topic="冷笑话"))